﻿namespace CTP.CRM.Core.Language
{
    public static class MasterDataLanguageCollectionExtensions
    {
        public static IServiceCollection AddMasterDataLanguage(this IServiceCollection services, Action<MasterDataLanguageOptions> action)
        {
            MasterDataLanguageOptions masterDataLanguageOptions = new MasterDataLanguageOptions();
            action(masterDataLanguageOptions);
            LanguageHelper.Init(masterDataLanguageOptions);
            return services;
        }
    }
}
